Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-windows

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-windows

Returns true if the platform is windows. UMD module, works with node.js, commonjs, browser, AMD, electron, etc.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19M
increased by4.77%
Maintainers
2
Weekly downloads
 
Created

What is is-windows?

The is-windows npm package is a simple utility that determines if the current runtime environment is Windows. It's a straightforward package with a single primary function, which is to check the operating system.

What are is-windows's main functionalities?

Check if the OS is Windows

This feature allows developers to programmatically check if their code is running on a Windows operating system. This can be useful for writing platform-specific code or for runtime environment checks.

var isWindows = require('is-windows');
console.log(isWindows()); // returns true if running on Windows, false otherwise

Other packages similar to is-windows

Keywords

FAQs

Package last updated on 14 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc